var res;
function getData(url) {
    $.ajax({
        async:false,
        url: url,
        type: "POST",
        success: function(result){
            res=result.data;
        },
        error:function(){
            console.log("getNode error")
        }
    });
    return res;
}